from selenium import webdriver
from selenium.webdriver.common.by import By
from time import sleep

driver = webdriver.Edge()
driver.get('file:///D:/QQ(%E6%96%B0%E7%89%88)/%E6%96%87%E4%BB%B6/Frame.html')
driver.maximize_window()
sleep(2)

driver.switch_to.frame(driver.find_element(By.ID,'search'))
driver.find_element(By.ID,'query').send_keys('自动化测试')
driver.find_element(By.ID,'stb').click()

sleep(5)